package com.im.dao;

import com.im.pojo.ImUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface AdminDao {

    @Insert("INSERT INTO im_user VALUES(0,#{user_id},#{user_pass},#{user_name},#{user_img})")
    public Integer insertUser(String user_id, String user_pass, String user_name, String user_img);
    @Insert("INSERT INTO im_user VALUES(0,#{user_id},#{user_pass},#{user_name},#{user_img})")
    public Integer deleteUser(String user_id, String user_pass, String user_name, String user_img);
    @Select("SELECT user_id,user_name,user_img FROM im_user")
    public ArrayList<ImUser> selectUser();

}
